package com.ocean.inxex.service.impl;

import com.ocean.inxex.mapper.StatisticsMapper;
import com.ocean.inxex.service.StatisticsService;
import com.ocean.inxex.vo.StatistisVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StatisticsServiceImpl implements StatisticsService {

    @Autowired
    private StatisticsMapper statisticsMapper;

    /**
     * 获取下载总联
     * @return
     */
    @Override
    public int getNumAll() {
        return statisticsMapper.getnumAll();
    }

    @Override
    public List<StatistisVo> getstatistis(String type) {
        return statisticsMapper.getstatistis(type);
    }

    @Override
    public List<StatistisVo> getstatistiscp() {
        return statisticsMapper.getstatistiscp();
    }
}
